package com.hbyj.object;

import com.hbyj.hbm.vo.Roles;

public class RoleData {
	private int id;
	private String name;
	
	public RoleData(int id,String name){
		this.id=id;
		this.name=name;
	}
	public RoleData(Roles hiberObj){
		this.id = hiberObj.getId();
		this.name=hiberObj.getName();
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getId() {
		return id;
	}
}
